"use client";
import React from "react";
import {theme } from "antd";
import TableC from "./component/Ctable";
import { usePathname } from "next/navigation";
export default function Yzh(props) {
  let pathname = usePathname().split("/");
  console.log(pathname);
  let obj = [];
  let cc = pathname.map((item, index) => {
    if (index > 1) {
      return (obj[index] = { title: <a href={item}>{item}</a> });
    }
    return (obj[index] = { title: <a href="/">{item}</a> });
  });
  console.log(cc);

  return (
    <div>
      <TableC></TableC>
    </div>
  );
}
